testgtk: Stop using gdk_surface_get_state
authorMatthias Clasen <mclasen@redhat.com>
Sun, 1 Mar 2020 17:41:25 +0000 (12:41 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 12 Mar 2020 18:56:20 +0000 (14:56 -0400)
tests/testgtk.c

index 77fa65e7f0c9d39e5835ef0196264eaa007b6c29..d160d680730d0ff3374d615ef3ee14a1cdbc380a 100644 (file)
@@ -4736,7 +4736,7 @@ surface_state_callback (GdkSurface  *window,
   gchar *msg;
   GdkSurfaceState new_state;
 
-  new_state = gdk_surface_get_state (window);
+  new_state = gdk_toplevel_get_state (GDK_TOPLEVEL (window));
   msg = g_strconcat ((const char *)g_object_get_data (G_OBJECT (label), "title"), ": ",
                      (new_state & GDK_SURFACE_STATE_WITHDRAWN) ?
                      "withdrawn" : "not withdrawn", ", ",